<template>
  <div class="app-container">
    <div class="blockquote">
      先付后享金额统计
    </div>
    <div class="div-row-1">
      <el-row :gutter="20">
        <el-col :lg="{span:'24-5'}">
          <div class="grid-content-1 bg-purple">
            <span>商品总授权金额/元</span><hr style="border: 0"/>
            <span><strong>755536.40</strong></span>
          </div>
        </el-col>
        <el-col :lg="{span:'24-5'}">
          <div class="grid-content-1 bg-purple">
            <span>已支付费用/元</span><hr style="border: 0"/>
            <span><strong>28036.40</strong></span>
          </div>
        </el-col>
        <el-col :lg="{span:'24-5'}">
          <div class="grid-content-1 bg-purple">
            <span>已退款费用/元</span><hr style="border: 0"/>
            <span><strong>0.00</strong></span>
          </div>
        </el-col>
        <el-col :lg="{span:'24-5'}">
          <div class="grid-content-1 bg-purple">
            <span>待支付费用/元</span><hr style="border: 0"/>
            <span><strong>455536.00</strong></span>
          </div>
        </el-col>
        <el-col :lg="{span:'24-5'}">
          <div class="grid-content-1 bg-purple">
            <span>扣款失败费用/元</span><hr style="border: 0"/>
            <span><strong>1755</strong></span>
          </div>
        </el-col>
      </el-row>
    </div>

    <div class="blockquote">
      先付后享订单统计
    </div>
    <div class="div-row-2">
      <el-row :gutter="20">
        <el-col :lg="{span:'24-5'}">
          <div class="grid-content-2 bg-purple">
            <span>商品总授权金额/元</span><hr style="border: 0"/>
            <span><strong>755536.40</strong></span>
            <ul class="el-list">
              <li class="el-list-item">列表项 1</li>
              <li class="el-list-item">列表项 2</li>
            </ul>
          </div>
        </el-col>
        <el-col :lg="{span:'24-5'}">
          <div class="grid-content-2 bg-purple">
            <span>已支付费用/元</span><hr style="border: 0"/>
            <span><strong>28036.40</strong></span>
            <ul class="el-list">
              <li class="el-list-item">列表项 1</li>
              <li class="el-list-item">列表项 2</li>
            </ul>
          </div>
        </el-col>
        <el-col :lg="{span:'24-5'}">
          <div class="grid-content-2 bg-purple">
            <span>已退款费用/元</span><hr style="border: 0"/>
            <span><strong>0.00</strong></span>
            <ul class="el-list">
              <li class="el-list-item">列表项 1</li>
              <li class="el-list-item">列表项 2</li>
            </ul>
          </div>
        </el-col>
        <el-col :lg="{span:'24-5'}">
          <div class="grid-content-2 bg-purple">
            <span>待支付费用/元</span><hr style="border: 0"/>
            <span><strong>455536.00</strong></span>
            <ul class="el-list">
              <li class="el-list-item">列表项 1</li>
              <li class="el-list-item">列表项 2</li>
            </ul>
          </div>
        </el-col>
        <el-col :lg="{span:'24-5'}">
          <div class="grid-content-2 bg-purple">
            <span>扣款失败费用/元</span><hr style="border: 0"/>
            <span><strong>1755</strong></span>
            <ul class="el-list">
              <li class="el-list-item">列表项 1</li>
              <li class="el-list-item">列表项 2</li>
            </ul>
          </div>
        </el-col>
        <el-col :lg="{span:'24-5'}">
          <div class="grid-content-2 bg-purple">
            <span>扣款失败费用/元</span><hr style="border: 0"/>
            <span><strong>1755</strong></span>
            <ul class="el-list">
              <li class="el-list-item">列表项 1</li>
              <li class="el-list-item">列表项 2</li>
            </ul>
          </div>
        </el-col>
        <el-col :lg="{span:'24-5'}">
          <div class="grid-content-2 bg-purple">
            <span>扣款失败费用/元</span><hr style="border: 0"/>
            <span><strong>1755</strong></span>
            <ul class="el-list">
              <li class="el-list-item">列表项 1</li>
              <li class="el-list-item">列表项 2</li>
            </ul>
          </div>
        </el-col>
      </el-row>
    </div>
    <div>
      <template>
        <el-select v-model="value" clearable placeholder="请选择订单状态">
          <el-option
            v-for="item in options"
            :key="item.value"
            :label="item.label"
            :value="item.value"
          >
          </el-option>
        </el-select>

        <el-select v-model="value" clearable placeholder="请选择商品扣款模式">
          <el-option
            v-for="item in options"
            :key="item.value"
            :label="item.label"
            :value="item.value"
          >
          </el-option>
        </el-select>

        <el-select v-model="value" clearable placeholder="请选择扣款方式">
          <el-option
            v-for="item in options"
            :key="item.value"
            :label="item.label"
            :value="item.value"
          >
          </el-option>
        </el-select>

        <el-select v-model="value" clearable placeholder="请选择看不清">
          <el-option
            v-for="item in options"
            :key="item.value"
            :label="item.label"
            :value="item.value"
          >
          </el-option>
        </el-select>
        <el-input placeholder="请输入内容" v-model="value" style="width: 200px"/>
        <el-button icon="el-icon-search"></el-button>

        <el-select v-model="value" class="choice-option" clearable placeholder="请选择商品类型">
          <el-option
            v-for="item in [{
        value: '选项1',
        label: '全部'
      }]"
            :key="item.value"
            :label="item.label"
            :value="item.value"
          >
          </el-option>
        </el-select>
        <div class="block">
          <el-date-picker
            v-model="value1"
            type="datetimerange"
            start-placeholder="开始日期"
            end-placeholder="结束日期"
            :default-time="['12:00:00']"
          >
          </el-date-picker>
        </div>
        <el-button type="success">清除筛选</el-button>
        <el-button type="primary">下载所选订单信息</el-button>
        <el-button type="danger">下载全部订单信息</el-button>
        <el-button type="primary">下载所选订单信息</el-button>
        <el-button type="danger">下载全部订单信息</el-button>
      </template>
      <h2>次卡模式订单，只能通过商家端扫码进入核销</h2>
    </div>
    <div class="div-table">
      <el-table
        ref="multipleTable"
        :data="tableData"
        border
        stripe
        tooltip-effect="dark"
        @selection-change="handleSelectionChange"
      >
        <el-table-column type="selection" width="55" align="center">
        </el-table-column>

        <el-table-column label="订单信息" align="center" prop="name">
        </el-table-column>

        <el-table-column label="信息" align="center" prop="address">
        </el-table-column>

        <el-table-column label="订单归属" align="center">
          <template v-slot="scope">
            <el-tag size="medium" type="warning">{{ scope.row.name }}</el-tag>
          </template>
        </el-table-column>

        <el-table-column label="商品信息" align="center" prop="address">
        </el-table-column>
        <el-table-column label="签约信息" align="center" prop="date">
        </el-table-column>
        <el-table-column label="期数信息" align="center" prop="date">
        </el-table-column>
        <el-table-column label="扣费信息（周月）" align="center" prop="date">
        </el-table-column>
        <el-table-column label="扣款信息（次卡）" align="center">
          <template>
            <span>无</span>
          </template>
        </el-table-column>
        <el-table-column label="备注" align="center">
          <template>
            <span>架子鼓</span>
          </template>
        </el-table-column>
        <el-table-column label="第一期账单" align="center">
          <template>
            <span>架子鼓</span>
          </template>
        </el-table-column>
        <el-table-column label="预约进度" align="center">
          <template v-slot="scope">
            <el-button type="success" size="mini">查看</el-button>
          </template>
        </el-table-column>
        <el-table-column label="状态" align="center">
          <template v-slot="scope">
            <el-tag size="medium">使用中</el-tag>
          </template>
        </el-table-column>
        <el-table-column label="操作" align="center">
          <template v-slot="scope">
            <el-button type="warning" size="mini">看不清</el-button>
            <el-button type="danger" size="mini" @click="deleteRow(scope.row.$index)">删除</el-button>
          </template>
        </el-table-column>
      </el-table>
    </div>
    <div class="pagination">
      <el-pagination
        background
        layout="prev, pager, next"
        :total="1000"
        style="text-align: right"
      >
      </el-pagination>
    </div>
  </div>

</template>

<style lang="scss" scoped>
.blockquote {
  padding: 15px;
  background-color: #ebf8ff;
  border-left: 5px solid #5a9cf8;
  color: #606266;
  margin: 5px 0;
  box-sizing: border-box;
}

.el-col-lg-24-5 {
  width: 20%;
}

.el-col {
  border-radius: 4px;
  margin-top: 5px;
}

.bg-purple-dark {
  background: #d2c7c7;
}

.bg-purple {
  background: #f6f3f3;
}

.bg-purple-light {
  background: #e0d2d2;
}

.grid-content-1 {
  border-radius: 4px;
  min-height: 60px;
  text-align: center;
  padding-top: 10px;
}
.grid-content-2 {
  border-radius: 4px;
  min-height: 120px;
  padding-top: 10px;
  text-align: center;
}
.el-list-item {
  text-align: left;
}

.row-bg {
  padding: 0px 0;
  background-color: #f9fafc;
}

</style>


<script>

export default {
  data() {
    const options = [
      {
        value: '选项1',
        label: '黄金糕'
      },
      {
        value: '选项2',
        label: '双皮奶'
      },
      {
        value: '选项3',
        label: '蚵仔煎'
      },
      {
        value: '选项4',
        label: '龙须面'
      },
      {
        value: '选项5',
        label: '北京烤鸭'
      }
    ]
    const tableData = [{
      date: '2016-05-02',
      name: '王小虎',
      address: '上海市普陀区金沙江路 1518 弄'
    }, {
      date: '2016-05-04',
      name: '王小虎',
      address: '上海市普陀区金沙江路 1517 弄'
    }, {
      date: '2016-05-01',
      name: '王小虎',
      address: '上海市普陀区金沙江路 1519 弄'
    }, {
      date: '2016-05-03',
      name: '王小虎',
      address: '上海市普陀区金沙江路 1516 弄'
    }]
    return {
      listLoading: true,
      dialogTableVisible: false,
      dialogFormVisible: false,
      form: {
        name: '',
        region: '',
        date1: '',
        date2: '',
        delivery: false,
        type: [],
        resource: '',
        desc: ''
      },
      formLabelWidth: '120px',
      options,
      value: '',
      tableData
    }
  },
  methods: {
    handleSetLineChartData(type) {
      this.$emit('handleSetLineChartData', type)
    },
    deleteRow(index) {
      this.tableData.splice(index, 1)
    }
  }
}
</script>
